#Evan Long 
#VLC Laser Gesture Control Makefile

CC = gcc
CFLAGS = -Wall `xml2-config --cflags`
OBJECTS = framegrabber.o image_proc.o monitor_loop.o safe_malloc.o cvector.o gesture_recognition.o vlc_control.o vlclasergesturecontrol.o
EXENAME = vlclasergesturecontrol

.SUFFIXES : .o .c
.c.o:
	$(CC) $(CFLAGS) -c $<

all: $(EXENAME) doc

exe: $(EXENAME)

$(EXENAME): $(OBJECTS)
	$(CC) $(CFLAGS) `xml2-config --libs` $^ -lm -lvlc -o $@

objects: $(OBJECTS)

doc: Doxyfile
	doxygen

clean:
	rm -f $(OBJECTS) $(EXENAME) *~
	rm -rf docs
